package guava.service;

import com.google.common.util.concurrent.AbstractScheduledService;

/**
 * Created by lxue on 16/5/7.
 */
public class ScheduleService extends AbstractScheduledService {

    /**
     * 定时干活
     * @throws Exception
     */
    @Override
    protected void runOneIteration() throws Exception {

    }

    /**
     * 定时策略
     * @return
     */
    @Override
    protected Scheduler scheduler() {
//        return Scheduler.newFixedDelaySchedule(initialDelay, delay, timeUnit);
        return null;
    }
}
